[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
tch_amount := 1 + (uniformdeviate 2); sketch_passes := 3; sketch_segments := 2 + (uniformdeviate 3); sketch_length := OverlayWidth / 3; draw topboundary withpen pensquare withcolor lightgray; naturalizepaths; \stopuseMPgraphic \defineoverlay[sketchylines][\useMPgraphic{mp:sketchy}] \setupTABLE[

[NTG-context] Re: How to stop

2024-01-28 Thread Bruce Horrocks
configurations. > > \setupTABLE[r][1][align=raggedleft] > \setupTABLE[c][1][width=.1\textwidth] > \setupTABLE[c][2][width=.33\textwidth] > \setupTABLE[c][3][width=.37\textwidth] >

[NTG-context] Re: How to stop

2024-01-27 Thread Hraban Ramm
a document that uses ~40 different TABLE configurations, each with their own special requirements, such as these below, and in total, perhaps 2000 tables appear in a file, using one of the configurations. \setupTABLE[r][1][align=raggedleft]  \setupTABLE[c][1][width=.1\textwidth]  \setupTABLE[c

[NTG-context] How to stop

2024-01-27 Thread Joel via ntg-context
I have a document that uses ~40 different TABLE configurations, each with their own special requirements, such as these below, and in total, perhaps 2000 tables appear in a file, using one of the configurations.                        \setupTABLE[r][1][align=raggedleft

[NTG-context] Re: \starttable questions

2024-01-26 Thread Jim
for some more reading. > You can do: \setupTABLE[2][3] to select the formatting for row 3 and column 2 > (or the other way around ... always forget). In the worst case, you can > always do > ... > \NC .. \NC[options] ... \NC \NR > > Each cell is just a \framed[

[NTG-context] Re: \starttable questions

2024-01-26 Thread Aditya Mahajan
On Thu, 25 Jan 2024, Jim wrote: > The nice thing about your setup above is that it is nice and structured. > But if a table calls for some row, column or cell to be treated > differently, I guess I am in for some more reading. You can do: \setupTABLE[2][3] to select the formatting

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
vrules don't use tabulate >> to create the tables. >> Coincidence? I think not. :-) > Table which rely on rules to make the content readable have a serious > problem > (read Edward Tufte books how you can improve the visual style) but the > better > alternative in this c

[NTG-context] Re: \starttable questions

2024-01-25 Thread Wolfgang Schuster
es. Below is a example which uses the table like wrapper for natural tables which makes adding rules and changing the padding around text very simple because each table cell is a \framed block with all its options. \starttext \startsetups[ruledtable]   \setupTABLE [frame=off,align=middle,loffset=.5

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster
) or the columndistance key (when you have invisible borders). % Alternative 1: % \setupTABLE[frame=on,offset=0pt,columndistance=1em] % Alternative 2: \setupTABLE [frame=off,offset=0pt,loffset=.5em,roffset=.5em] \setupTABLE [column] [first] [loffset=0pt] \setupTABLE [column] [last]  [roffset=0pt

[NTG-context] natural table oddities

2023-04-01 Thread Henning Hraban Ramm via ntg-context
Hraban Ramm via ntg-context wrote: * If I format a column, e.g. \setupTABLE[c][-1][color=red], body and foot are formatted, but not the same column in header. I couldn’t find how to format columns in header. If you disregard the Wiki page instructions to use \bTH...\eTH then you can format

Re: [NTG-context] natural table oddities

2023-03-27 Thread Bruce Horrocks via ntg-context
orking on the documentation for “natural tables” in my book I stumbled upon >> a few oddities/problems: >> ## Addressing cells: >> * There’s \setupTABLE[header], but not "footer" (or "section"); since we >> have TABLEhead and TABLEfoot, IMO "head" and

Re: [NTG-context] natural table oddities

2023-03-27 Thread Henning Hraban Ramm via ntg-context
I would be happy about some answers/comments. Hraban Am 13.03.23 um 23:26 schrieb Henning Hraban Ramm: Working on the documentation for “natural tables” in my book I stumbled upon a few oddities/problems: ## Addressing cells: * There’s \setupTABLE[header], but not "footer" (o

Re: [NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Willi Egger via ntg-context
> > I think \setupcaption[orientation=90] should work. Did you try different > locations? > > But the problem might be your use of \rotation, since \startplacefloat as > well as \setupTABLE have options for rotation. > Try \startplacetable[location=90] > > Hraban > ___

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
gray. I have no difficulty achieving the first row, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold

Re: [NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Henning Hraban Ramm via ntg-context
]} \stopplacetable I think \setupcaption[orientation=90] should work. Did you try different locations? But the problem might be your use of \rotation, since \startplacefloat as well as \setupTABLE have options for rotation. Try \startplacetable[location=90] Hraban

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Bruce Horrocks via ntg-context
ll intermediate > rows have gray. > I have no difficulty achieving the first row, and the black bottomframe for > the last row, but I have been unable to get the last row sides to be gray. > Here is the current setups that I have: > \setupTABLE[frame=off] > \setupTABLE[row] [first]

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Henning Hraban Ramm via ntg-context
have no difficulty achieving the first row, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2

[NTG-context] \setupTABLE: framecolor

2023-03-24 Thread jbf via ntg-context
, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
[1]{\RtH}{\rotate{#1}} \starttext \setupTABLE[offset=3pt] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR You can change the vertical alignment

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread Bruce Horrocks via ntg-context
\setupTABLE inherits from \setupframed which has an orientation option. So \bTR[orientation=90] on the header row should do it, with the content specified normally i.e. without using \RtH. A quick test on one of my tables showed some issues with alignment so you may need to fix the 'width

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread fv leung via ntg-context
\dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] > \bTABLE > \bTABLEhead > \bTR \bTH

[NTG-context] rotated headers in natural tables

2023-03-15 Thread Henning Hraban Ramm via ntg-context
Hi! In my table, I want the header texts to be 90˚ rotated and aligned to the bottom of their cell. I couldn’t find an option to do that. Tried \dontleavehmode or \hfill in my \RtH macro to no avail. Is it possible? \define[1]{\RtH}{\rotate{#1}} \starttext \setupTABLE[offset=3pt

[NTG-context] natural table oddities

2023-03-14 Thread Henning Hraban Ramm via ntg-context
appear anywhere. * spaceinbetween should insert between rows, but nothing happens. * splitoffset doesn’t seem to change anything. * What’s samepage for? ## Addressing cells * It’s not possible to address single cells with \setupTABLE, or is it? * There’s \setupTABLE[header], but not "f

Re: [NTG-context] Table

2023-03-13 Thread Ursula Hermann via ntg-context
rttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTABLE \bTR \bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD \eTR \bTR \bTD \eTD \bTD \eT

Re: [NTG-context] Table

2023-03-13 Thread Mikael Sundqvist via ntg-context
Uschi > There are probably better ways, but this seems to give something like what you look for: \starttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTA

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
\layoutcolumnwidth is coming from so I just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuservariable{author} \eTD

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuservariable{author} \eTD \bTD \structureuservariable{bio} \eTD

Re: [NTG-context] \xmlmap errors when returning key-value

2023-02-22 Thread Denis Maier via ntg-context
etsetup{#1}{table}{xml:table} > \stopxmlsetups > > \xmlregistersetup{xml:test} > > \xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft} > \xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright} > > \xmlmapvalue{colgroupalignvar}{dir: rtl}{righttoleft} > \xmlmapvalue

[NTG-context] \xmlmap errors when returning key-value

2023-02-20 Thread Denis Maier via ntg-context
mlmapvalue{colgroupalignvar}{dir: ltr}{lefttoright} \startxmlsetups xml:table:colgroup \xmlfilter {#1} {/col/command(xml:table:colgroup:col)} % gives errors %\xmlfilter {#1} {/col/command(xml:table:colgroup:colvar)} % works \stopxmlsetups \startxmlsetups xml:table:colgroup:colvar

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
of the element inside the colgroup, so I was thinking about something like this : \xmlmapvalue{colstyle}{dir: rtl}{align=righttolef } \xmlmapvalue{colstyle}{dir: ltr}{align=lefttoright} \startxmlsetups xml:table:colgroup:col \setupTABLE[c][\xmlpos{#1}][\xmlvalue{colstyle}{\xmlatt{#1}{style

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Henning Hraban Ramm via ntg-context
Am 30.06.22 um 09:36 schrieb Hans Hagen via ntg-context: On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're right. You're joking right? SInce when can one

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Hans Hagen via ntg-context
On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote: Hi Henning, On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Angel M Alganza via ntg-context
Hi Henning, On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're right. Cheers, Ángel

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Henning Hraban Ramm via ntg-context
\setupTABLE) – or did that change? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
gt; have made these changes as well. > > [Also, I hope you are aware that you can use style=\tt, style=\bf per row/ > column/cell with \setupTABLE; that will significantly reduce markup in > your > file] > > Best, > Sreeram _

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
xample was missing a \bTABLEhead. Moreover, I believe cells in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. I have made these changes as well. [Also, I hope you are aware that you can use style=\tt, style=\bf per row/ column/cell with \setupTABLE; that will significantly reduce ma

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
, header=\dimexpr4cm, height=middle, bottomspace=\dimexpr0cm, footer=\dimexpr0.5cm] \setupheadertexts[\setups{headertext}] \definehspace[tnumber][0.5em] \startsetups [headertable] \setupTABLE[frame=off] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushright] \stopsetups

Re: [NTG-context] xmlpos values doubled

2022-04-20 Thread Ben Moon via ntg-context
r a table stored in XML JATS format > (https://jats.nlm.nih.gov/archiving/) and eventually want to use the > tag to setup column aligning from the @align attribute, e.g., > > \setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}] > > Including \xmlpos{#1} I get dou

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
e alternative, align, closesymbol, closecommand to get exactly what you want; the example above will give a somewhat symmetric layout] More generally, if the text can multi-line, then I think TABLE (with proper alignment options) might be better-suited: %%% start example-2 \define\startItemize{

Re: [NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread Bruce Horrocks via ntg-context
> On 6 Apr 2022, at 12:18, juh+ntg-context--- via ntg-context > wrote: > > > Hi all, > > I include tables via csv files like this > > \processdatabasefile[test][test.csv] > > I was able to style the tables with this: > > \setupTABLE [ split=yes, h

[NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread juh+ntg-context--- via ntg-context
Hi all, I include tables via csv files like this \processdatabasefile[test][test.csv] I was able to style the tables with this: \setupTABLE [ split=yes, header=repeat, option=stretch, loffset=.5ex,roffset=.5ex] \setupTABLE [row] [odd] [background=color,backgroundcolor=hs-hellblau

[NTG-context] xmlpos values doubled

2022-03-28 Thread Ben Moon via ntg-context
Hello All, I'm trying to render a table stored in XML JATS format (https://jats.nlm.nih.gov/archiving/) and eventually want to use the tag to setup column aligning from the @align attribute, e.g., \setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}] Including \xmlpos{#1} I get

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ult}] \setvariables [assignments] [set={\setups[assignments:set]}] \startsetups assignments:set \writestatus{variables}{assignments:set is being called..} \startalignment[middle] \bTABLE[frame=off] \setupTABLE[c][1][align=flushleft,style=bold,distance=2cm] \setupTABLE[c][2][al

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-09 Thread Wolfgang Schuster via ntg-context
or extreme tables are the better choice for this table layout but it can be improved. 1. Keep the layout/settings local. To ensure the \setupTABLE settings don't affect other tables you can either put \start and \stop at the begin and end of the table, e.g. \start \setupTABLE

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Joel via ntg-context
is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm] \setupTABLE[c][each][align={lohi,center}] \bTABLE     \bTR         \bTD {\bf Eons}\eTD \bTD {\bf Eras

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Willi Egger via ntg-context
I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Jean-Philippe Rey via ntg-context
t; > Any ideas ? > > I know that natural tables offer more in this regard, but those seem not to > be so well suited for parallel texts. > > I switched to natural tables a long time ago and that's how I would do it: > > \starttext > \bTABLE[width=8cm, frame=of

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Denis Maier via ntg-context
offer more in this regard, but those seem not to be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do it: \starttext \bTABLE[width=8cm, frame=off] \setupTABLE[c][1][roffset=0.5em] \setupTABLE[c][2][loffset=0.5em] \bTR \bTD[nc=2,

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Jean-Philippe Rey via ntg-context
the cells at the top aren’t merged. > > Any ideas ? > > I know that natural tables offer more in this regard, but those seem not to > be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do it: \starttext \bTABLE[width=8cm

Re: [NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Wolfgang Schuster via ntg-context
\startsetups [alexandre:1]     \setupTABLE [start] [frame=off]     \setupTABLE [c] [1] [width=.3\textwidth]     \setupTABLE [c] [2] [width=.6\textwidth] \stopsetups \startitemize [a] [right=),stopper=] \bTABLE[setups=alexandre:1] \bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something

[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all, I'm trying something out in LMTX, which is to combine itemize with a table. Application could be to put a question and the answer in the next column. A minimal example would be: \starttext \startitemize [a] [right=),stopper=] \bTABLE[frame=off] \setupTABLE[column][1] [width

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-19 Thread Henning Hraban Ramm via ntg-context
Am 19.11.21 um 08:48 schrieb juh via ntg-context: And in https://wiki.contextgarden.net/Command/setupTABLE the parameter width is not mentioned at all. Because it inherits from \setupframed where all these parameters are declared. I would like to improve the wiki, any hint where a hint

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread juh via ntg-context
Am Thu, Nov 18, 2021 at 07:08:12PM +0100 schrieb Hans Hagen: > maybe something > > \setupTABLE[c][1][width=4cm] > \setupTABLE[c][3][width=4cm] I discovered that \startcell[align=flushleft,width=4cm] A very long line that breaks \stopcell does the same trick. While the par

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread Hans Hagen via ntg-context
natural tables I found this code on the wiki % mode=mkiv \setuppapersize[A5] \bTABLE \setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle] \bTABLEhead \bTR \bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH \bTH Same-Width Suffix \eTH \bTH Varying-Width Suf

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread juh via ntg-context
ables I found this code on the wiki % mode=mkiv \setuppapersize[A5] \bTABLE \setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle] \bTABLEhead \bTR \bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH \bTH Same-Width Suffix \eTH \bTH Varying-Width Suffix \eTH \eTR \

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread T. Kurt Bond
ds and turn the frame off and get every odd row in > > all my tables will have that color for the background. > > > > == Example > > > \definecolor[grayback][r=.8,g=.8,b=.8] > > \setupTABL

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread Wolfgang Schuster
\definecolor[grayback][r=.8,g=.8,b=.8] \setupTABLE[background=color,frame=off] \setupTABLE[row][odd][backgroundcolor=grayback] == End of Example = Can I get this same effect with extreme tables? My first try

[NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread T . Kurt Bond
=.8,g=.8,b=.8] \setupTABLE[background=color,frame=off] \setupTABLE[row][odd][backgroundcolor=grayback] == End of Example = Can I get this same effect with extreme tables? My first try with extreme tables looked like

[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
attached a mwe where you can use --mode=title to invoke the broken columns. Any advice on how to place text above the columns environment would be gratefully received. With kind regards, Michael \startsetups[tablesettings] \setupTABLE[c][1][style=\tfc, color=darkred, align=left] \setupTABLE[c

[NTG-context] splitting tables from csv with first row as header

2021-06-23 Thread Jan U. Hasecke
Hi all, I have this sample: \usemodule[database] \setuppapersize [A6] \setupTABLE [split=yes, header=repeat] \defineseparatedlist [test] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext \processdatabasefile[test

[NTG-context] Natural tables framecolor=white regression

2021-06-20 Thread Christoph Reller
Hi, Consider the following MWE: \starttext \setupTABLE[ rulethickness=5pt, framecolor=white, %red, background=color, backgroundcolor=gray, frame=off] \setupTABLE[1][2][foregroundcolor=white, topframe=on] \setupTABLE[r][2][topframe=on] \bTABLE[setups=table:color] \bTR \bTD One

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
for those columns that I > had set specific width. See the example below - > > Maybe I am missing a trick or two - or this indeed is the desired > behavior? Thank you very much. > > \setupTABLE[r][each][height=0.5cm,frame=on] > \setupTABLE[c][each][width=0.6cm] > \setupTABLE[

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Wolfgang Schuster
his indeed is the desired behavior? Thank you very much. \setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3c

[NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
very much. \setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3cm,topframe=on] \setupTABLE[c][each][width=1.7cm] \setupTABL

Re: [NTG-context] Questions for eTABLE

2021-02-23 Thread Alain Delmotte
] \setupbodyfont[dejavu,10pt,ss] % setups and example thanks to Wolfgang Schuster \startsetups[tablesettings] \setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex] \setupTABLE[row][first][background="">

Re: [NTG-context] Questions for eTABLE

2021-02-22 Thread Wolfgang Schuster
Alain Delmotte schrieb am 22.02.2021 um 19:58: Hi! I have the following program: \definecolor [tableheader] [x=00ADEF] \setupbodyfont[dejavu,10pt,ss] % setups and example thanks to Wolfgang Schuster \startsetups[tablesettings] \setupTABLE[start][framecolor=gray

[NTG-context] Questions for eTABLE

2021-02-22 Thread Alain Delmotte
Hi! I have the following program: \definecolor [tableheader] [x=00ADEF] \setupbodyfont[dejavu,10pt,ss] % setups and example thanks to Wolfgang Schuster \startsetups[tablesettings] \setupTABLE[start][framecolor=gray

Re: [NTG-context] How to improve visually a table

2021-02-16 Thread Wolfgang Schuster
at the attachment for a example. Wolfgang \setupbodyfont[dejavu,10pt,ss] \starttext \definecolor [tableheader] [x=00ADEF] \startsetups[tablesettings] \setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex] %\setupTABLE[header][background=color,backgroundcolor=tableheader

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-08 Thread T. Kurt Bond
={footer,middle}] \setupwhitespace[quarterline] \setupbodyfont[pagella,9pt] \definepapersize[digest][width=5.5in,height=8.5in] \setuppapersize[digest] \starttext \startplacetable[location=force,title={Stun Levels}] \definecolor[back-3][r=.8,g=.8,b=.8] \setupTABLE[background=color,frame=off,framecolor

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Aditya Mahajan
On Sat, 5 Dec 2020, T. Kurt Bond wrote: > If I understand correctly, \setupTABLE applies to each table after the > \setupTABLE, correct? If so, can you make it only apply to one table? If you really need it for one table: \bTABLE \setupTABLE[...][...] \setupTABLE[...][...] \bTR ..

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
Thanks for the help! On Sat, Dec 5, 2020 at 10:21 PM Jairo A. del Rio wrote: > Hi, > You could enclose your table and setup using \bgroup and \egroup > > \bgroup > \setupTABLE ... > \bTABLE ... \eTABLE > \egroup > > \begingroup ... \endgroup also works, although I ha

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Jairo A. del Rio
Hi, You could enclose your table and setup using \bgroup and \egroup \bgroup \setupTABLE ... \bTABLE ... \eTABLE \egroup \begingroup ... \endgroup also works, although I have to admit I'm not aware of the differences between both. Regards, Jairo :) El sáb., 5 de dic. de 2020 10:01 p. m., T

[NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
If I understand correctly, \setupTABLE applies to each table after the \setupTABLE, correct? If so, can you make it only apply to one table? -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io

[NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
} \def\TBLline#1{\bTR\processcommalist[#1]\TBLentry} \def\dostartCSV#1\stopCSV{% \bTABLE \ProcessLines\TBLline{#1}% \eTABLE \egroup } % some additional settings for the table may be made as well \setupTABLE[c][2][style=\tt] \setupTABLE[c][3][align=middle] \setupTABLE[r][1][style=bold

Re: [NTG-context] specify column-width, with option=stretch

2020-11-05 Thread Peter Münster
On Wed, Nov 04 2020, Peter Münster wrote: > I would like to specify the column-width of the first column to 5mm: > > \starttext > [...] > \stoptext Sorry, that wasn't really a minimal example. Here a better file, to show what I'm looking for: \setupTABLE[textwidth=10cm,

[NTG-context] specify column-width, with option=stretch

2020-11-04 Thread Peter Münster
Hi, I would like to specify the column-width of the first column to 5mm: --8<---cut here---start->8--- \starttext \setupTABLE[textwidth=99mm, option=stretch] \setupTABLE[c][each][align={lohi, middle}] \setupTABLE[c][1][height=5mm, style=\tfxx] \framed

Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-10-01 Thread Denis Maier
Am 30.09.2020 um 22:03 schrieb Wolfgang Schuster: Denis Maier schrieb am 30.09.2020 um 21:54: Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] A few options need [start] when you set them before \bTABLE. \setupTABLE

Re: [NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Wolfgang Schuster
Denis Maier schrieb am 30.09.2020 um 21:54: Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] A few options need [start] when you set them before \bTABLE. \setupTABLE [split=yes] \setupTABLE [start] [spaceinbetween=25pt

[NTG-context] Natural Tables: spaceinbetween not working?

2020-09-30 Thread Denis Maier
Hi, spaceinbetween seems to have no effect in this example: === \setupTABLE [spaceinbetween=25pt,split=yes] \starttext \bTABLE \dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR} \eTABLE \stoptext == What am I missing? Best, Denis

Re: [NTG-context] More table questions

2020-09-22 Thread Denis Maier
can get this behavior using any of table mechanism. The wiki has an example when using the (now deprecated) TaBlE macros https://wiki.contextgarden.net/Table#Booktabs The same effect is rather easy to achieve when using natural tables as well. \startsetups booktabs \setupTABLE[each][each

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
entpicture to OverlayBox; \stopuseMPgraphic \defineoverlay[booktabs_bottom] [\uniqueMPgraphic{booktabs_bottom}] \installbottomframerenderer{booktabs}{\uniqueMPgraphic{booktabs_bottom}} \startsetups booktabs \setupTABLE[each][each][frame=off, rulethickness=1.2bp] \setupTABLE[row][first][topframe=

Re: [NTG-context] More table questions

2020-09-22 Thread Peter Münster
On Tue, Sep 22 2020, Aditya Mahajan wrote: > The same effect is rather easy to achieve when using natural tables as > well. But it fails, when there is only one data-row... :( \startsetups booktabs \setupTABLE[each][each][frame=off] \setupTABLE[row][first][topframe=on,rulethickness

Re: [NTG-context] More table questions

2020-09-22 Thread Aditya Mahajan
of table mechanism. The wiki has an example when using the (now deprecated) TaBlE macros https://wiki.contextgarden.net/Table#Booktabs The same effect is rather easy to achieve when using natural tables as well. \startsetups booktabs \setupTABLE[each][each][frame=off] \setupTABLE[row][first]

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
ent • \em, \bf, \cap, • \startitemize, \startitem, \starthead, • \placefigure, \externalfigure, • \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE • \index, \completeindex • \setuplayout, \setupfootertexts et \setupheadertexts • \definedescription, \defineenumeration • \at, \in Anyway, t

Re: [NTG-context] fun with frames and tables

2020-04-13 Thread Wolfgang Schuster
to fill one page with several tables. Here’s a quite minimal example: \setupTABLE[c][each][width=2cm] \starttext \framed[offset=overlay,width=\textwidth]{% \vbox{\bTABLE \dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\eTR} \eTABLE}% \hskip1cm% \vbox{\bTABLE \dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\bTD z

[NTG-context] fun with frames and tables

2020-04-13 Thread Henning Hraban Ramm
minimal example: \setupTABLE[c][each][width=2cm] \starttext \framed[offset=overlay,width=\textwidth]{% \vbox{\bTABLE \dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\eTR} \eTABLE}% \hskip1cm% \vbox{\bTABLE \dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\bTD z \eTD\eTR} \eTABLE}% } \stoptext I’m trying to get

Re: [NTG-context] Tent style cards

2019-12-22 Thread Hans Hagen
solution: \starttexdefinition TableCard #1     \setupTABLE [start] [frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]     \setupTABLE [row]   [1] [orientation=180]    %\setupTABLE [start] [leftframe=on,rightframe=on]    %\setupTABLE [row]   [1] [topframe=on]    %\setupTABLE

Re: [NTG-context] Tent style cards

2019-12-22 Thread Wolfgang Schuster
    \setupTABLE [start] [frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]     \setupTABLE [row]   [1] [orientation=180]    %\setupTABLE [start] [leftframe=on,rightframe=on]    %\setupTABLE [row]   [1] [topframe=on]    %\setupTABLE [row]   [2] [bottomframe=on]     \bTABLE     \bTR

[NTG-context] Bad cooperation between \unit and TABLE

2019-11-03 Thread Tomas Hala
doing something wrong? Best wishes, Tomáš \starttext \setupTABLE[c][2][alignmentcharacter={text->,}, aligncharacter=yes, align={lohi,middle}] \bTABLE \bTR\bTD Line \#1 \eTD \bTD39 \eTD \eTR \bTR\bTD Line \#2 \eTD \bTD 42,185 \eTD\eTR %\bTR\bTD Line \#2a \eTD \bTD 55 550

Re: [NTG-context] Typesetting hebrew in a table...

2019-08-12 Thread Willi Egger
o typeset the Ifrith text is not broken into lines correctly >> i.e. it is leaping into the cell reserved for the German text. — How to >> correct this behaviour? > > Either use: > > \setupTABLE[column][2][align={r2l,right},width=42mm] > > or: > > \setupTABLE

Re: [NTG-context] Typesetting hebrew in a table...

2019-08-12 Thread Taco Hoekwater
ken into lines correctly > i.e. it is leaping into the cell reserved for the German text. — How to > correct this behaviour? Either use: \setupTABLE[column][2][align={r2l,right},width=42mm] or: \setupTABLE[column][2][align={r2l,verytolerant,stretch},width=42mm] since a bare

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
used fixed values, in the actual document that would not be good - too many different cells. I am trying a further approach using MetaPost and OverlayBox. Seems possible (line wrapping also an issue), but quite involved... Thanks, Martin New MWS: \setupTABLE[c][1][width=20mm] \setupTABLE[c

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Wolfgang Schuster
-context | current version: 2019.05.18 10:42 PDF of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
Hi Willi, thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE statement. Now I tried adding it into the particular cell -- again no effect even if I add "middle". \bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD I suspect the rotate

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Willi Egger
; > What can I do to fix the problem? Thanks for suggestions. > > Martin > > using: mtx-context | current version: 2019.05.18 10:42 > PDF of my output is attached. > > MWE: > > \starttext > \setupTABLE[c][1][width=7mm] > \setupTABLE[c][2][width=30mm] &

[NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD blah \eTD \eTR \eTABLE \stoptext rotate-test.pdf

Re: [NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Hans Hagen
... l.114 \eTABLE My table is: \setupTABLE[header][each][background=color,backgroundcolor=white, width=broad] \bTABLE[split=repeat,option={stretch},  align={flushright}, frame=off]   \bTABLEhead[align=flushright]     \bTR    \bTH [offset=none, align={flushleft},

[NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
e_stop ...l_ntb_table_get_max_width \ifautoTBLspread \tabl_ntb... \eTABLE ...oveunwantedspaces \tabl_ntb_table_stop \stopTBLprocessing \fi \po... l.114 \eTABLE My table is: \setupTABLE[header][each][background

[NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
headers based on information I get from the XML: \startxmlsetups xml:prozess \mainlanguage[de] \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date] {\bTABLE \setupTABLE[frame=off] \setupTABLE[offset=1mm] \setupTABLE[c][1][align=right, width=14cm] \setupTABLE[c

Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-20 Thread Hans Hagen
On 2/20/2019 10:51 AM, Procházka Lukáš Ing. wrote: Hello Hans, On Wed, 20 Feb 2019 09:15:40 +0100, Hans Hagen wrote: as column setup for TABLEs by "\setupTABLE[c][1][width=1in]" is handy and is used frequently, would it be possible to provide identical mechanism for xtab

  1   2   3   4   5   6   7   8   9   10   >